package com.ljkj.blockpay.util;

import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.net.Uri;
import android.view.View;

import androidx.fragment.app.FragmentActivity;

import com.ljkj.blockpay.ui.activity.AboutUsActivity;
import com.ljkj.blockpay.ui.activity.AccountsSecurityActivity;
import com.ljkj.blockpay.ui.activity.AdvancedActivity;
import com.ljkj.blockpay.ui.activity.CashActivity;
import com.ljkj.blockpay.ui.activity.ChangePasswordActivity;
import com.ljkj.blockpay.ui.activity.CurrencyDetailActivity;
import com.ljkj.blockpay.ui.activity.ExchangeActivity;
import com.ljkj.blockpay.ui.activity.GoogleVerifierActivity;
import com.ljkj.blockpay.ui.activity.GuideActivity;
import com.ljkj.blockpay.ui.activity.GuideSecondActivity;
import com.ljkj.blockpay.ui.activity.HistoryTradingActivity;
import com.ljkj.blockpay.ui.activity.InvitingActivity;
import com.ljkj.blockpay.ui.activity.LoginActivity;
import com.ljkj.blockpay.ui.activity.MMAddressActivity;
import com.ljkj.blockpay.ui.activity.MainActivity;
import com.ljkj.blockpay.ui.activity.MyProfileActivity;
import com.ljkj.blockpay.ui.activity.PreferencesActivity;
import com.ljkj.blockpay.ui.activity.PrimaryAuthentActivity;
import com.ljkj.blockpay.ui.activity.RealNameAuthenticationActivity;
import com.ljkj.blockpay.ui.activity.ReceiptActivity;
import com.ljkj.blockpay.ui.activity.RechargeActivity;
import com.ljkj.blockpay.ui.activity.RegisterActivity;
import com.ljkj.blockpay.ui.activity.ResetPwdActivity;
import com.ljkj.blockpay.ui.activity.SFZActivity;
import com.ljkj.blockpay.ui.activity.ScanActivity;
import com.ljkj.blockpay.ui.activity.SelectActivity;
import com.ljkj.blockpay.ui.activity.SelectCurrencyActivity;
import com.ljkj.blockpay.ui.activity.SelectLanuguageActivity;
import com.ljkj.blockpay.ui.activity.ThirdGuideActivity;
import com.ljkj.blockpay.ui.activity.TradingParticularsActivity;
import com.ljkj.blockpay.ui.activity.TransferAccountsActivity;
import com.ljkj.blockpay.ui.activity.TransferActivity;
import com.ljkj.blockpay.ui.activity.WebViewActivity;
import com.ljkj.blockpay.ui.activity.WithdrawDetailActivity;

public class ToggleToActivity {
    /**
     * 跳转到充值界面
     */
    public static void toRechargeActivity(Context activity){
        Intent intent = new Intent(activity, RechargeActivity.class);
        activity.startActivity(intent);

    }

    /**
     * 提现界面
     */
    public static void toCashActivity(Context activity){
        Intent intent = new Intent(activity, CashActivity.class);
        activity.startActivity(intent);
    }

    /**
     * 扫一扫页面
     * @param activity
     */
    public static void toScanActivity(Context activity) {
        Intent intent = new Intent(activity, ScanActivity.class);
        activity.startActivity(intent);
    }

    /**
     * 收款页面
     * @param activity
     */
    public static void toReceiptActivity(Context activity) {
        Intent intent = new Intent(activity, ReceiptActivity.class);
        activity.startActivity(intent);
    }

    /**
     * 兑换页面
     * @param activity
     */
    public static void toExchangeActivity(Context activity) {
        Intent intent = new Intent(activity, ExchangeActivity.class);
        activity.startActivity(intent);
    }

    /**
     * 转账页面
     * @param activity
     */
    public static void toTransferActivity(Context activity) {
        Intent intent = new Intent(activity, TransferActivity.class);
        activity.startActivity(intent);
    }

    /**
     * 去主页
     * @param activity
     */
    public static void toMainActivity(Context activity) {
        Intent intent = new Intent(activity, MainActivity.class);
        activity.startActivity(intent);
    }

    /**
     *  去第一引导页
     */
    public static void toGuideActivity(Context activity) {
        Intent intent = new Intent(activity, GuideActivity.class);
        activity.startActivity(intent);
    }

    /**
     *  去第二引导页
     */
    public static void toSecondGuideActivity(Context activity) {
        Intent intent = new Intent(activity, GuideSecondActivity.class);
        activity.startActivity(intent);
    }

    /**
     * 去第三引导页
     * @param activity
     */
    public static void toThirdGuideactivity(Context activity) {
        Intent intent = new Intent(activity, ThirdGuideActivity.class);
        activity.startActivity(intent);
    }

    /**
     * 我的资料页面
     * @param activity
     */
    public static void toMyProfileActivity(Context activity) {
        Intent intent = new Intent(activity, MyProfileActivity.class);
        activity.startActivity(intent);
    }

    /**
     * 实名认证界面
     * @param activity
     */
    public static void toRealNameAuthenticationActivity(Activity activity) {
        Intent intent = new Intent(activity, RealNameAuthenticationActivity.class);
        activity.startActivity(intent);
    }

    /**
     * 账号与安全中心
     * @param activity
     */
    public static void toAccountsSecurityActivity(Activity activity) {
        Intent intent = new Intent(activity, AccountsSecurityActivity.class);
        activity.startActivity(intent);
    }

    /**
     * 提币地址页面
     * @param activity
     */
    public static void toMMAddressActivity(Activity activity) {
        Intent intent = new Intent(activity, MMAddressActivity.class);
        activity.startActivity(intent);
    }

    /**
     * 偏好设置
     * @param activity
     */
    public static void toPreferencesActivity(Activity activity) {
        Intent intent = new Intent(activity, PreferencesActivity.class);
        activity.startActivity(intent);
    }

    /**
     * 邀请有礼
     * @param activity
     */
    public static void toInvitingActivity(Activity activity) {
        Intent intent = new Intent(activity, InvitingActivity.class);
        activity.startActivity(intent);
    }

    /**
     * 关于我们
     * @param activity
     */
    public static void toAboutUsActivity(Activity activity) {
        Intent intent = new Intent(activity, AboutUsActivity.class);
        activity.startActivity(intent);
    }

    /**
     * 初级认证
     * @param activity
     */
    public static void toPrimaryauthentActivity(Activity activity) {
        Intent intent = new Intent(activity, PrimaryAuthentActivity.class);
        activity.startActivity(intent);
    }

    /**
     * 高级认证
     * @param activity
     */
    public static void toAdvancedActivity(Activity activity) {
        Intent intent = new Intent(activity, AdvancedActivity.class);
        activity.startActivity(intent);
    }

    /**
     * 绑定手机号，邮箱
     * @param activity
     */
    public static void toSFZActivity(Activity activity,int tagPage) {
        Intent intent = new Intent(activity, SFZActivity.class);
        intent.putExtra("tagPage",tagPage);
        activity.startActivity(intent);
    }

    /**
     * 修改登录密码
     * @param activity
     */
    public static void toChangePasswordActivity(Activity activity) {
        Intent intent = new Intent(activity, ChangePasswordActivity.class);
        activity.startActivity(intent);
    }

    /**
     * 谷歌身份验证器
     * @param activity
     */
    public static void toGoogleVerifierActivity(Activity activity) {
        Intent intent = new Intent(activity, GoogleVerifierActivity.class);
        activity.startActivity(intent);
    }


    /**
     * 去注册页
     * @param activity
     */
    public static void toRegiestActivity(FragmentActivity activity) {
        Intent intent = new Intent(activity, RegisterActivity.class);
        activity.startActivity(intent);

    }

    /**
     * 去登录页
     * @param activity
     */
    public static void toLoginActivity(FragmentActivity activity) {
        Intent intent = new Intent(activity, LoginActivity.class);
        activity.startActivity(intent);
    }

    /**
     * 币种选择页面
     * @param activity
     */
    public static void toSelectCurrencyActivity(Activity activity) {
        Intent intent = new Intent(activity, SelectCurrencyActivity.class);
        activity.startActivity(intent);
    }
    /**
     * 币种选择页面
     * @param activity 兑换页面   up 10 down 11
     */
    public static void toSelectCurrencyActivity(Activity activity,int tag) {
        Intent intent = new Intent(activity, SelectCurrencyActivity.class);
        activity.startActivityForResult(intent,tag);
    }


    /**
     * 币种详情页面
     *
     * @param activity
     */
    public static void toCurrencyDetailActivity(FragmentActivity activity) {
        Intent intent = new Intent(activity, CurrencyDetailActivity.class);
        activity.startActivity(intent);
    }

    /**
     * 转账详情页面
     * @param activity 带参数
     */
    public static void toTransferAccountActivity(Activity activity,String bizToken, String account, String headUrl) {
        Intent intent = new Intent(activity, TransferAccountsActivity.class);
        intent.putExtra(TransferAccountsActivity.TAG_BIZTOKEN,bizToken);
        intent.putExtra(TransferAccountsActivity.TAG_ACCOUNT,account);
        intent.putExtra(TransferAccountsActivity.TAG_HEADURL,headUrl);
        activity.startActivity(intent);
    }

    /**
     * 添加提币地址页面
     * @param activity
     */
    public static void toWithdrawDetailActivity(Activity activity) {
        Intent intent = new Intent(activity, WithdrawDetailActivity.class);
        activity.startActivity(intent);
    }

    /**
     * 选择界面  语言，常用币
     * @param activity
     */
    public static void toSelectActivity(Activity activity,int tag) {
        Intent intent = new Intent(activity, SelectActivity.class);
        activity.startActivityForResult(intent,tag);
    }

    /**
     * 交易详情页面
     * @param activity
     */

    public static void toTradingParticularActivity(Activity activity,int orderType, String orderId) {
        Intent intent = new Intent(activity, TradingParticularsActivity.class);
        intent.putExtra(TradingParticularsActivity.TAG_ORDERTYPE,orderType);
        intent.putExtra(TradingParticularsActivity.TAG_ORDERID,orderId);
        activity.startActivity(intent);
    }
    /**
     *语言设置页面
     */
    public static void toSelectLanuguageActivity(Activity activity){
        Intent intent = new Intent(activity, SelectLanuguageActivity.class);
        activity.startActivity(intent);
    }

    /**
     * 跳转本地web页面
     * @param activity
     */
    public static void toWebViewActivity(Activity activity) {
        Intent intent = new Intent(activity,WebViewActivity.class);
        activity.startActivity(intent);
    }

    /**
     * 历史记录界面
     * @param activity
     */
    public static void toHistoryTradingActivity(Activity activity) {
        Intent intent = new Intent(activity, HistoryTradingActivity.class);
        activity.startActivity(intent);
    }

    /**
     * 重置密码界面
     * @param activity
     */
    public static void toResetPwdActivity(Activity activity) {
        Intent intent = new Intent(activity, ResetPwdActivity.class);
        activity.startActivity(intent);
    }
}
